package com.dbs.donatebooksystem.Service;

import com.dbs.donatebooksystem.pojo.Book;
import com.dbs.donatebooksystem.pojo.PageBean;

import java.util.List;
import java.util.Map;

public interface BooksService {
    boolean InsertBooks(Book book);

    List<Book> SelectBooks(String bookname, String category);


    PageBean pageBean(Integer page,Integer pageSize,String bookname,String category);

    List<List<Object>> selectCategoryNum();


    void UpdateBook(Book book);

    void deleteBook(Integer id);

    /**
     * @description 搜索书籍
     *
     * @param searchBook 搜索书籍
     * @return {@link List }<{@link Book }>
     *
     * @date 2025/03/12 22:39:08
     */
    List<Book> SearchBooks(Book searchBook);

    Book selectBookById(Integer id);
}
